<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\daterange\DateRangePicker;

/**
 * @var yii\web\View $this
 * @var backend\module\content\models\ArticleSearch $model
 * @var yii\widgets\ActiveForm $form
 */
?>

<div class="article-search">

    <?php
    $form = ActiveForm::begin([
                'action' => ['index', 'catid' => $catid],
                'method' => 'get',
    ]);
    ?>


    <?= $form->field($model, 'title') ?>

    <?=
    $form->field($model, 'date_range', [
        'options' => ['class' => 'drp-container form-group']
    ])->widget(DateRangePicker::classname(), [
        'convertFormat'=>true,
        'pluginOptions' => [
            'timePicker' => true,
            'timePickerIncrement' => 1,
            'locale' => ['format' => 'Y-m-d H:i:s']
        ]
    ]);
    ?>
</div>
<?php // echo $form->field($model, 'description')    ?>

<?php // echo $form->field($model, 'keywords')    ?>

<?php // echo $form->field($model, 'userid')    ?>

<?php // echo $form->field($model, 'url')   ?>

<div class="form-group">
    <?= Html::submitButton(Yii::t('common', 'Search'), ['class' => 'btn btn-primary']) ?>
    <?= Html::resetButton(Yii::t('common', 'Reset'), ['class' => 'btn btn-default']) ?>
</div>

<?php ActiveForm::end(); ?>

</div>
